import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * @program: spring-demo2
 * @author: JCM
 * @create: 2023-02-22 15:08
 * @description:
 **/

@Controller
public class User {
    int Id;
    String Name;

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String sayHi() {
        return "hello world!";
    }
}
